<?php
class CI_Zend
{
    /**
	     * Constructor
	     *
	     * @param   string $class class name
	     */
	    function __construct($class = NULL)
	    {
	        // include path for Zend Framework
	        // alter it accordingly if you have put the 'Zend' folder elsewhere
       		ini_set('include_path',
	        ini_get('include_path') . PATH_SEPARATOR . APPPATH . 'libraries');
	 
	        if ($class)
	        {
	            require_once (string) $class . EXT;
	            log_message('debug', "Zend Class $class Loaded");
	        }
	        else
	        {
	            log_message('debug', "Zend Class Initialized");
	        }
	    }
	 
	    /**
	     * Zend Class Loader
	     *
	     * @param   string $class class name
	     */
	    function load($class)
	    {
	        require_once (string) $class . EXT;
	        log_message('debug', "Zend Class $class Loaded");
	    }
	}
	 
	?>